package com.gxnu.edu.cn.ttxxt.service;

import com.gxnu.edu.cn.ttxxt.entity.Messages;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface MessageService {

    Messages sendTextMessage(Long senderId, Long receiverId, String content, Integer isGroup);

    Messages sendFileMessage(Long senderId, Long receiverId, String content, Integer isGroup, Long fileId);

    Messages sendShakeMessage(Long senderId, Long receiverId, Integer isGroup);

    List<Messages> getChatHistory(Long userId, Long contactId, Integer isGroup, int page, int size);

    List<Messages> getUnreadMessages(Long userId);

    void markMessagesAsRead(Long userId, Long contactId, Integer isGroup);
}
    